package com.six.firstpage.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.six.core.entity.Link;

import java.util.List;

/**
* @author ZZH
* @description 针对表【tb_link】的数据库操作Service
* @createDate 2023-02-27 10:21:18
*/
public interface LinkService extends IService<Link> {

    //前端查询所有友情链接
    List<Link> getAllLink();

    //查询链接
    Page<Link> getLinkByName(String name,Integer status,Integer current,Integer pageSize);

    //添加链接
    Integer addLink(Link link);

    //修改链接
    Integer updateLink(Link link);

    //逻辑删除链接
    Integer delLink(Integer linkId);

}
